#include "tlg_utils.h"
#include "configator.h"
#include "dragonfail.h"
#include "config.h"

#include <dirent.h>
#include <limits.h>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <string.h>
#include <sys/ioctl.h>
#include <unistd.h>

#if defined(__DragonFly__) || defined(__FreeBSD__)
#include <sys/consio.h>//bsd version
#else
#include <linux/vt.h>
#endif // platform define

void desktop_crawl(struct desktop* target, char* sessions, enum display_server server)
{
  DIR* dir;
  struct dirent* dir_info;
  int ok;

  ok = access(sessions, F_OK);// sys api?
  
  if (ok == -1)
  {
    dgn_throw(DGN_XSESSIONS_DIR);
    return;
  }
  // TODO:

}

void desktop_load()
{

}

